public class y {
    public static String lem() {
    System.out.println("lem");
    return "return from lem";
}

public static String foo() {
    int x = 0;
    int y = 5;
    try {
        System.out.println("start try");
        int b = y / x; // This will cause an ArithmeticException
        System.out.println("end try");
        return "returned from try";
    } catch (Exception e) {
        System.out.println("catch in foo");
        return lem() + " | return from catch";
    } finally {
        System.out.println("finally in foo");
    }
}

public static void bar() {
    System.out.println("start bar");
    String v = foo();
    System.out.println(v);
    System.out.println("end bar");
}

public static void main(String[] args) {
    bar();
}
}
